import hilog from '@ohos.hilog'

const domain = 0x1111
const prefix = 'ELBase'
const format = '%{public}s,%{public}s'

export class LogUtils {
  static debug(...args: string[]){
    hilog.debug(domain,prefix,format,args)
  }

  static info(...args: string[]) {
    hilog.info(domain, prefix, format, args);
  }

  static warn(...args: string[]) {
    hilog.warn(domain, prefix, format, args);
  }

  static error(...args: string[]) {
    hilog.error(domain, prefix, format, args);
  }

  static fatal(...args: string[]) {
    hilog.fatal(domain, prefix, format, args);
  }

  static isLogger(level: LogLevel) {
    hilog.isLoggable(domain, prefix, level);
  }

}